package com.zzw.hj4;

import java.util.ArrayList;
import java.util.Scanner;
import java.util.List;

/**
 * @Project: hw_java
 * @Description: 字符串分隔
 * @Author: zzw
 */

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        StringBuilder str = new StringBuilder(in.nextLine());
        List<String> strList = new ArrayList<>();
        while ((str.length() % 8) != 0) {
            str.append("0");
        }

        //System.out.println(str);
        for (int i = 0; i < str.length(); i = i + 8) {
            strList.add(str.substring(i, i + 8));
        }
        for (String s : strList) {
            System.out.println(s);
        }
    }

}
